#pragma once
#include "gun.h"
#include "../Player/Player.h"

class CBullet;

class CFireGun :
	public CGun
{
public:
	CFireGun(void);
	CFireGun(CPlayer* pOwner);
	~CFireGun(void);
	void Shoot();
	void Render();
	void Update(float fElapsedTime);
	void AddRef();
	void Update();
	RECT GetRect();

	virtual void HandleEvent(CEvent* pEvent);


private:
	float m_fCooldownShot1;
	float m_fCooldownShot2;
	int m_nEnergyCostShot1;
	int m_nEnergyCostShot2;
	CBullet* m_pbulletFirePrimary;
	CBullet* m_pbulletFireSecondary;

	CPlayer* m_pOwner;
};

